home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / fax / src / util / config.h < prev    next >
C/C++ Source or Header  |  1994-08-01  |  5KB  |  96 lines

  1. /*    $Header: /usr/people/sam/fax/util/RCS/config.h,v 1.48 1994/03/02 15:09:56 sam Rel $ */
  2. /*
  3.  * Copyright (c) 1990, 1991, 1992, 1993, 1994 Sam Leffler
  4.  * Copyright (c) 1991, 1992, 1993, 1994 Silicon Graphics, Inc.
  5.  *
  6.  * Permission to use, copy, modify, distribute, and sell this software and 
  7.  * its documentation for any purpose is hereby granted without fee, provided
  8.  * that (i) the above copyright notices and this permission notice appear in
  9.  * all copies of the software and related documentation, and (ii) the names of
  10.  * Sam Leffler and Silicon Graphics may not be used in any advertising or
  11.  * publicity relating to the software without the specific, prior written
  12.  * permission of Sam Leffler and Silicon Graphics.
  13.  * 
  14.  * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
  15.  * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
  16.  * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
  17.  * 
  18.  * IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
  19.  * ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
  20.  * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  21.  * WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
  22.  * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
  23.  * OF THIS SOFTWARE.
  24.  */
  25. #ifndef _CONFIG_
  26. #define    _CONFIG_
  27.  
  28. /*
  29.  * Spooling configuration definitions.
  30.  * The master spooling directory is broken up into several
  31.  * subdirectories to isolate information that should be
  32.  * protected (e.g. documents) and to minimize the number
  33.  * of files in a single directory (e.g. the send queue).
  34.  */
  35. #define    FAX_SPOOLDIR    "/usr/spool/fax"
  36. #define FAX_LIBEXEC    "/usr/local/lib/fax"    /* place for lib executables */
  37. #define    FAX_LIBDATA    "/usr/local/lib/fax"    /* place for lib data files */
  38.  
  39. #define    FAX_USER    "fax"        /* account name of the ``fax user'' */
  40.  
  41. #define    FAX_SEQF    "sendq/seqf"    /* send sequencing info */
  42. #define    FAX_CONFIG    "etc/config"    /* master configuration file */
  43. #define    FAX_XFERLOG    "etc/xferlog"    /* send/recv log file */
  44. #define    FAX_PERMFILE    "etc/hosts"    /* send permission file */
  45. #define    FAX_ETCDIR    "etc"        /* subdir for configuration files  */
  46. #define    FAX_RECVDIR    "recvq"        /* subdir for received facsimiles  */
  47. #define    FAX_SENDDIR    "sendq"        /* subdir for send description files */
  48. #define    FAX_DOCDIR    "docq"        /* subdir for documents to send */
  49. #define    FAX_TMPDIR    "tmp"        /* subdir for temp copies of docs */
  50. #define    FAX_INFODIR    "info"        /* subdir for remote machine info */
  51. #define    FAX_CTLDIR    "cinfo"        /* subdir for remote machine ctl info */
  52. #define    FAX_LOGDIR    "log"        /* subdir for log files */
  53. #define    FAX_STATUSDIR    "status"    /* subdir for server status files */
  54. #define FAX_CONFIGPREF    "config"    /* prefix for local config files */
  55. #define FAX_REMOTEPREF    "remote"    /* prefix for remote config files */
  56. #define FAX_QFILEPREF    "sendq/q"    /* prefix for queue file */
  57.  
  58. #define    FAX_FIFO    "FIFO"        /* FIFO file for talking to daemon */
  59. #define    MODEM_ANY    "any"        /* any modem acceptable identifier */
  60. #define    FAX_PROTOVERS    1        /* client-server protocol version */
  61.  
  62. /* NB: all times are given in seconds */
  63. #define    FAX_REQBUSY    (5*60)        /* requeue interval on busy answer */
  64. #define    FAX_REQPROTO    (1*60)        /* requeue interval on protocol error */
  65. #define    FAX_REQUEUE    (15*60)        /* requeue interval on other */
  66. #define    FAX_TTL        (24*60*60)    /* default time to live for a send */
  67. #define    FAX_RETRIES    -1        /* number times to retry send */
  68. #define    FAX_TIMEOUT    "now + 1 day"    /* default job timeout (at syntax) */
  69. #define    FAX_DEFVRES    98        /* default vertical resolution */
  70.                     /* default is no email notification */
  71. #define    FAX_DEFNOTIFY    SendFaxClient::no_notice
  72.  
  73. #define    UUCP_LCKTIMEOUT    (3*60*60)    /* UUCP lock auto-expiration (secs) */
  74. #define    UUCP_PIDDIGITS    10        /* # digits to write to lock file */
  75. #ifdef svr4
  76. #define    UUCP_LOCKPREFIX    "LK."        /* file name is <prefix><device> */
  77. #else
  78. #define    UUCP_LOCKPREFIX    "LCK.."        /* file name is <prefix><device> */
  79. #endif
  80. #define    DEV_PREFIX    "/dev/"        /* prefix to strip from special files */
  81.  
  82. #ifndef LOG_FAX
  83. #define    LOG_FAX        LOG_DAEMON    /* logging identity */
  84. #endif
  85.  
  86. #define    FAX_TYPERULES    "typerules"    /* file type and conversion rules */
  87. #define    FAX_DIALRULES    "dialrules"    /* client dialstring conversion rules */
  88. #define    FAX_PAGESIZES    "pagesizes"    /* page size database */
  89. #define    FAX_COVER    "faxcover.ps"    /* prototype cover sheet file */
  90. #define    FAX_NOTIFYCMD    "bin/notify"    /* command to do job notification */
  91. #define    FAX_TRANSCMD    "bin/transcript"/* command to return transcript */
  92. #define    FAX_FAXRCVDCMD    "bin/faxrcvd"    /* command to process a received fax */
  93. #define    FAX_POLLRCVDCMD    "bin/pollrcvd"    /* command to process a received fax */
  94. #define FAX_PS2FAX    "bin/ps2fax"    /* command to convert postscript */
  95. #endif
  96.